﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DelayDestory : MonoBehaviour
{
    public float time = 1;
    private void OnEnable()
    {
        Invoke("DelayUnActive",time);
    }
    public void DelayUnActive()
    {
        gameObject.SetActive(false);
    }
}
